﻿<MSheet Color="#1B2559"
        Dark="IsDark"
        Rounded="Rounded"
        Class="@($"app-code overflow-hidden {Class}")"
        Outlined
        Elevation="0">
    <MSyntaxHighlight Class="white--text overflow-x-auto overflow-y-hidden" Code="@Code" Language="@Language" IgnorePreCssOfTheme></MSyntaxHighlight>
    <AppCopyButton Content="@Code" Class="mr-n2 mt-n2"></AppCopyButton>
</MSheet>

@code {

    [CascadingParameter(Name = "IsDark")]
    public bool IsDark { get; set; }

    [Parameter]
    public string? Class { get; set; }

    [Parameter]
    public StringBoolean Rounded { get; set; } = true;

    [Parameter]
    [EditorRequired]
    public string? Code { get; set; }

    [Parameter]
    [EditorRequired]
    public string? Language { get; set; }

}
